package com.ikas.ai.server.module.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户分组表
 * </p>
 *
 * @author admin
 * @since 2021-11-11
 */
@TableName("t_cfg_usergroup")
public class Usergroup extends Model<Usergroup> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户组ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户组名
     */
    @TableField("name")
    private String name;

    /**
     * 描述
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public Usergroup setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Usergroup setName(String name) {
        this.name = name;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public Usergroup setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public Usergroup setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Usergroup{" +
                ", id=" + id +
                ", name=" + name +
                ", remark=" + remark +
                ", createTime=" + createTime +
                "}";
    }
}
